package 设计模式.结构型.Adapter适配器.Demo_3;

/**
 * 处理请求
 *
 * @author: 张从龙
 * time: 2022/8/13 17:27
 */
public interface Controller {
    void handleRequest(HttpServletRequest request);
}
 
class HttpController implements Controller {
    @Override
    public void handleRequest(HttpServletRequest request) {
        System.out.println("http...");
    }
}
 
class SimpleController implements Controller {
    @Override
    public void handleRequest(HttpServletRequest request) {
        System.out.println("simple...");
    }
}
 
class AnnotationController implements Controller {
    @Override
    public void handleRequest(HttpServletRequest request) {
        System.out.println("annotation...");
    }
}
 